package cn.dada.dadarecipes.user.shipping_address.mapper;

import cn.dada.dadarecipes.user.shipping_address.pojo.entity.ShippingAddress;
import cn.dada.dadarecipes.user.shipping_address.pojo.vo.ShippingAddressVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShippingAddressMapper {
    void insert(ShippingAddress shippingAddress);

    void update(ShippingAddress shippingAddress);

    void delete(Long id);

    //查询地址
    List<ShippingAddressVO> selectShippingAddress(Long userId);

    ShippingAddressVO selectShippingAddressById(@Param("userId") Long userId,@Param("id") Long id);

    ShippingAddressVO selectShippingAddressByAddressId(Long id);
}
